package com.blkbox.cxf.first.client;

import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;

import com.blkbox.cxf.first.server.IService;

public class CXFClient {
	public static void main(String[] args) {

		System.out.println("client start");
		JaxWsProxyFactoryBean factoryBean = new JaxWsProxyFactoryBean();
		factoryBean.setServiceClass(IService.class);
		factoryBean.setAddress("http://localhost:9000/Hello");
		IService iService = (IService) factoryBean.create();

		System.out.println(iService.getWord("OK"));
	}
}
